package com.itheima.common.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.itheima.common.entity.MyAuthority;
import lombok.Data;

import java.util.List;

/**
 * @program: ly_parent
 * @description:
 **/
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserInfo {

    //员工ID
    private Long id;
    private String username;
    private String role;



    private String mobile;
    private String wxAccount;
    private String email;
    private String qqAccount;
    private String color;
    private String icon;
    //公司用户相关信息
    private Long companyId;
    private String companyName;
    private Long departmentId;
    private String departmentName;
    private String post;
    private String workNumber;
    //用户登录采用的客户端ID
    private String clientId;

    //当前用户包含所有的权限
    @JsonIgnore  //忽略转为json
    private List<MyAuthority> grantedAuthorities;
}
